package cn.oms.manage.dao.persist.repository;

import cn.oms.manage.pojo.entity.Order;
import cn.oms.manage.pojo.param.OrderUpdateParam;
import cn.oms.manage.pojo.vo.OrderListVo;
import cn.oms.manage.pojo.vo.OrderStandardVO;

import java.util.List;

public interface IOrderRepositry {
    int insert(Order order);
    int deleteById(Long id);
    int updateById(Long id,OrderUpdateParam orderUpdateParam);
    int updateState(Long id);
    List<OrderListVo> list();
    List<OrderListVo> listByUsername(String username);
    List<OrderListVo> listByDoctor(String doctorName);
    List<OrderListVo> listByState(String state);
    OrderStandardVO getStandardById(Long id);
    Long getCustomerId(String phone,String username);
    int countByCustomer(Long CustomerId);

}
